package com.zsh.weather.ln.home.adapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zsh.weather.ln.R
import com.zsh.weather.ln.bean.IndicesInfo

class HomeAdapter(data: MutableList<IndicesInfo>): BaseQuickAdapter<IndicesInfo, BaseViewHolder>(R.layout.fragment_home_adapter,data) {
    override fun convert(holder: BaseViewHolder, item: IndicesInfo) {
        holder.setText(R.id.tv_name,item.name)
        holder.setText(R.id.tv_text,item.text)
    }
}